package com.example.aop.demo;

import lombok.extern.slf4j.Slf4j;

@Slf4j
public class Function {
    public void function1() {
        long startTime = System.currentTimeMillis();
        System.out.println("function...");
        function2();
        long endTime = System.currentTimeMillis();
        log.info("function1 耗时: " + (endTime - startTime) + " ms");
    }

    public void function2() {
        System.out.println("function2...");
    }
}
